import React, { useState, useEffect } from 'react'
import { View, Button, Image, Text } from '@tarojs/components'
import Taro from '@tarojs/taro'
import './examine-login.scss'
import logop from '../../images/images-png/logo.png'

function LoginTest () {
  // useInfo存储用户的信息
  const [useInfo, setUseInfo] = useState({})
  // 用户信息的获取
  const handleGetPhoneNumber = (e) => {
    console.log('点击获取手机事件', e)
    console.log(e.detail.errMsg)
    console.log(e.detail.iv)
    console.log(e.detail.encryptedData)
  }
  
  return (
    <View className="container">
      <View className="box">
        <View className="box-logo">
          <Image className="logo" src={logop} />
        </View>
        <View className="title">
        房颤抗凝评估
        </View>
      </View>
      <View className="text-introduce">
        <Text>这是文字介绍这是文字介绍这是文字介绍这是文字介绍这是文字介绍这是文字</Text>
      </View>
      <View className="loginbtn">
        <Button className="btn" type="primary" open-type="getPhoneNumber"  onGetPhoneNumber={handleGetPhoneNumber} >登 录</Button>
      </View>
    </View>
  )
}

export default LoginTest